package com.tos.second.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tos.second.entity.Orders;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface OrdersMapper extends BaseMapper<Orders> {
    void saveOrder(Orders orders);

    @Select("select * from orders where buyer_id = #{currentId} order by order_time desc")
    List<Orders> getMyBuyList(Long currentId);
}
